
import request from '@/utils/request'

//获需求
export function getCustomersList(data) {
  return request({
    url: '/product/listPage',
    method: 'get',
    params: data
  })
}

//获需求详情
export function getProductDetails(id) {
  return request({
    url: '/product/findProductDetails?id=' + id,
    method: 'get'
  })
}

//供给侧
export function getSupplySideIndustryList(data) {
  return request({
    url: '/supplySideIndustry/listPage',
    method: 'Post',
    data: data
  })
}

//供给侧详情
export function getSupplySideIndustryDetails(id) {
  return request({
    url: '/supplySideIndustry/findSupplySideIndustryDetails?id=' + id,
    method: 'get'
  })
}


//披露1
export function getOrganicList(data) {
  return request({
    url: '/organic/list',
    method: 'get',
    params: data
  })
}
// 审核
export function getOrganicApproved(id, s) {
  return request({
    url: '/organic/approved?id=' + id + "&status=" + s,
    method: 'get'
  })
}
//供给//披露1 详情
export function getOrganicCompanyById(data) {
  return request({
    url: '/organic/listNewById',
    method: 'get',
    params: data
  })
}


//披露1 详情
export function getOrganicDetails(id) {
  return request({
    url: '/organic/findOrganicDetails?id=' + id,
    method: 'get'
  })
}

//披露2
export function getMaterialList(data) {
  return request({
    url: '/material/list',
    method: 'get',
    params: data
  })
}
export function getMaterialApproved(id, s) {
  return request({
    url: '/material/approved?id=' + id + "&status=" + s,
    method: 'get'
  })
}
//披露2 详情
export function getMaterialDetails(id) {
  return request({
    url: '/material/findMaterialDetails?id=' + id,
    method: 'get'
  })
}
//供给
export function getMaterialCompanyById(data) {
  return request({
    url: '/material/listNewById',
    method: 'get',
    params: data
  })
}
